package com.yayan.beautyclub.dao;

import java.util.List;

import com.yayan.beautyclub.bean.Ticket;

public interface ITicketDao {

	/**
	 * 分页获取优惠券信息列表
	 * @param page
	 * @param size
	 * @return
	 * @throws Exception
	 */
	List<Ticket> getTicketList(int page, int size) throws Exception;
	
	/**
	 * 根据tId获取优惠券信息
	 * @param tId
	 * @return
	 * @throws Exception
	 */
	Ticket getTicket(long tId) throws Exception;
	
	/**
	 * 保存优惠券信息
	 * @param ticket
	 * @return
	 * @throws Exception
	 */
	long save(Ticket ticket) throws Exception;
	
	/**
	 * 更新优惠券信息
	 * @param ticket
	 * @return
	 * @throws Exception
	 */
	boolean update(Ticket ticket) throws Exception;
	
	/**
	 * 根据tId删除优惠券信息
	 * @param tId
	 * @return
	 * @throws Exception
	 */
	boolean delete(long tId) throws Exception;
}
